的资格

the right to

→ 的
phrase Rare #31,642
the right to 资格 means eligibility or qualification; 的 connects it to the preceding action or status.
CH: 每个人都有表达意见的资格。
EN: Everyone has the right to express their opinion.

不用抽签您可以直接获得进入地下城生活的资格这也是唯一能让您跟刘启都活着的办法

You don’t need to draw lots—you can directly obtain the qualification to enter the underground city. This is the only way to keep both you and Liu Qi alive.

— 流浪地球 (2019)

你们是没有生存的资格的

You don't deserve to live.

— 自己去看 (1985)

他有被赞美的资格

He deserves to be praised.

— 荒野大镖客 (1964)

并不是所有民族都有存在的资格

Not every ethnic group has the right to exist.

— 自己去看 (1985)